<template>
  <div>
    <!-- 基本使用 -->
    <!-- <echartsEx /> -->
    <PieVue :data="homeData.salePie" />
  </div>
</template>

<script setup lang="ts">
// import echartsEx from './components/echartsExample.vue'
import { reactive } from 'vue';
import PieVue from './components/Pie.vue'
import { homeDataApi } from '@/api';

const homeData = reactive<IHomeData>({
  saleMap: [],
  salePie: [],
})

homeDataApi().then(res => {
  if (res.errno == 0) {
    homeData.saleMap = res.data.saleMap
    homeData.salePie = res.data.salePie
  }
})
</script>

<style scoped></style>